package cn.xuguowen.user.designPatten.chain_of_responsibility.hsp;

/**
 * ClassName: Approver
 * Package: cn.xuguowen.user.designPatten.chain_of_responsibility.hsp
 * Description: 抽象审批者
 *
 * @Author 徐国文
 * @Create 2023/6/2 22:00
 * @Version 1.0
 */
public abstract class Approver {
    /**
     * 后继审批者
     */
    protected Approver approver;
    /**
     * 审批者姓名
     */
    protected String name;

    public void setApprover(Approver approver) {
        this.approver = approver;
    }

    public Approver(String name) {
        this.name = name;
    }

    protected abstract void approve(PurchaseRequest purchaseRequest);
}
